<?php
//商城会员控制器
class IndexAction extends Action {
	
    public function index(){
        // $uid = $_SESSION['uid'];
        // $db = M('order');
        // $orderData = $db->where(array('id'=>$_SESSION['oid']))->find();
        // $orderGds = M('order_list')->where(array('oid'=>$orderData['id']))->select();
        // $gsimg = M('intro');
        // foreach($orderGds as $key=>$val){
        //     $tmpData = $gsimg->where(array('gid'=>$val['gid']))->field('mini')->find();
        //     $gspics = explode('|', $tmpData['mini']);
        //     $orderGds[$key]['gspic'] = $gspics[0];
        // }
        // $this->orderData = $orderData;
      	$this->display();
    }

    //会员个人信息
    public function userinfo(){
    	$this->display();
    }
    // 会员订单视图
    // public function myoder(){
        // $uid = $_SESSION['uid'];
        // $db = M('order');
        // $orderData = $db->where(array('id'=>$_SESSION['oid']))->find();
        // $orderGds = M('order_list')->where(array('oid'=>$orderData['id']))->select();
        // $gsimg = M('intro');
        // foreach($orderGds as $key=>$val){
        //     $tmpData = $gsimg->where(array('gid'=>$val['gid']))->field('mini')->find();
        //     $gspics = explode('|', $tmpData['mini']);
        //     $orderGds[$key]['gspic'] = $gspics[0];
        // }
        // $this->orderData =$orderData;
        // echo 111111;
        // p($orderData);die;
    	// $this->display();
    // }
    //修改个人信息
    public function modifyInfo(){
    	$this->display();
    }
    //修改密码
    public function changeps(){
    	$this->display();
    }
    //修改收货地址
    public function changeadress(){
    	$this->display();
    }
}
?>